package cn.com.yky.domain;

import cn.com.yky.domain.share.UUIDEntity;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * Created by zhengmin on 2017/2/4.
 */
@Entity
@Table(indexes = {
        @Index(name = "idx_stu_phone_number",columnList = "phoneNumber",unique = true),
        @Index(name = "idx_stu_no",columnList = "stuNo",unique = true)})
public class Student extends UUIDEntity{

    private String name;
    private String phoneNumber;
    private String stuNo;
    private String password;

    private String orgId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }
}
